package com.cssy.yd.basic.dao;

import com.cssy.yd.basic.entity.BasicBomDO;
import com.cssy.yd.basic.entity.BasicBomInfoDO;
import com.cssy.yd.basic.entity.BasicBomRawMaterialDO;
import com.cssy.yd.basic.entity.BasicMaterialsDO;
import com.plat.helper.SearchConditions;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

/**
 * ��ݷ��ʶ���ӿ�
 * @since 2013-08-15
 */
public interface BasicBomInfoDAO {

    /**
     * �������
     * @param basicBomInfoDO
     * @return ������ݵ�����
     */
    public String insertBasicBomInfoDO(BasicBomInfoDO basicBomInfoDO);

    /**
     * ͳ�Ƽ�¼��
     * @param basicBomInfoDO
     * @return ����ļ�¼��
     */
    public Integer countBasicBomInfoDOByExample(BasicBomInfoDO basicBomInfoDO);

    /**
     * ���¼�¼
     * @param basicBomInfoDO
     * @return ��Ӱ�������
     */
    public Integer updateBasicBomInfoDO(BasicBomInfoDO basicBomInfoDO);

    /**
     * ��ȡ�����б�
     * @param basicBomInfoDO
     * @return �����б�
     */
    public List<BasicBomInfoDO> findListByExample(BasicBomInfoDO basicBomInfoDO);

    /**
     * ��������ȡbasicBomInfoDO
     * @param billSequenceId
     * @return basicBomInfoDO
     */
    public BasicBomInfoDO findBasicBomInfoDOByPrimaryKey(String billSequenceId);

    /**
     * ɾ���¼
     * @param billSequenceId
     * @return ��Ӱ�������
     */
    public Integer deleteBasicBomInfoDOByPrimaryKey(String billSequenceId);

    public List<BasicBomInfoDO> find(SearchConditions scs) throws DataAccessException;
    public Integer count(SearchConditions scs) throws DataAccessException;
    public List<BasicMaterialsDO> findAllCp(Map<String, Object> map) throws DataAccessException;
    public List<BasicBomRawMaterialDO> findRawMaterials(String code) throws DataAccessException;
    public List<BasicBomRawMaterialDO> findSubstituteAll(Map<String, Object> map) throws DataAccessException;
    public Integer deleteAll() throws DataAccessException;
    
}